package code.rocky.chapter06;

import java.util.Arrays;
import java.util.List;

public class Suggest87 {
    public static void main(String[] args) {
        List<String> params = Arrays.asList("Spring", "summer");
        for (String name : params) {
            Season season = Season.valueOf(name);
            if (season != null) {
                System.out.println(season);
            }
            else {
                System.out.println("无相关枚举项");
            }
        }
    }
}
